package com.gome.axwl.aoc.service;

import com.github.pagehelper.PageInfo;
import com.gome.axwl.aoc.dao.EmptyContractDao;
import com.gome.axwl.aoc.entity.po.ContractPo;
import com.gome.axwl.aoc.entity.po.EmptyContractPo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * Created by wanglongyu on 2018/7/13.
 */
public interface EmptyContractService {
    /***
     * 通过空白合同模板编码 获取模板信息
     * @param emptyContractNo
     * @return
     */
    EmptyContractPo queryByNo(String emptyContractNo);

    EmptyContractPo queryByApplyInfoId(Integer applyInfoId);

    /***
     * 服务商签署合同后更新
     * @param emptyContractJson
     * @param applyInfoId
     * @return
     */
    int updateJson(String emptyContractJson,Integer applyInfoId,Date modifyTime);

    int addEmptyContract(EmptyContractPo emptyContractPo);

    int updateStatus(Integer applyInfoId,Integer status,Date modifyTime);
}
